//

//


//

CMap = function () {

}
CMap.prototype = {}


CMap.valueArr = function (objDic) {
    let keyArr = Object.keys(objDic);
    let valueArr = [keyArr]
    let i = 0;
    keyArr.forEach(function (key) {
        valueArr[i] = objDic[key];
        i++;
    });
    return valueArr;
}


CMap.ClassCopy = function (thisObj, baseObj) {
    // Object.keys(baseObj).forEach(function (key) {
    //     if (thisObj[key] == null) {
    //         thisObj[key] = baseObj[key];
    //     }
    //     thisObj["base"][key] = baseObj[key];
    // });
    for (let key in baseObj) {
        let value = baseObj[key];
        if (thisObj[key] == null) {
            thisObj[key] = value;
        }
        if (thisObj.base == null) {
            thisObj.base = {}
        }
        thisObj.base[key] = value;
    }


    // let keyArr = Object.keys(baseObj.Prototype);
    // for (let i = 0; i < keyArr.length; i++) {
    //     let key = keyArr[i];
    //     if (thisObj[key] == null) {
    //         thisObj[key] = baseObj[key];
    //     }
    //     thisObj["base"][key] = baseObj[key];
    // }

}